package com.feri.fitness.network.oss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 千锋郑州Java学科欢迎你
 * @program: Fitness
 * @description: 实体层 和数据库的表一一对应
 * @author: Feri
 * @create: 2023-01-12 08:59:28
 */
@Data
@NoArgsConstructor
@TableName("t_osslog")
public class Osslog {
    /**
    *序号,主键 */
     @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    *存储空间名 */
    private String bname;
    /**
    *对象名 */
    private String objname;
    /**
    *访问地址 */
    private String preurl;
    /**
    *类型：1.图片 2.视频 */
    private Integer type;
    /**
    *创建时间 */
    private Date ctime;

    public Osslog(String bname, String objname, String preurl, Integer type) {
        this.bname = bname;
        this.objname = objname;
        this.preurl = preurl;
        this.type = type;
        this.ctime=new Date();
    }
}